package net.kong.sns.rest.client.method;

import java.util.Map;

/**
 * @author <a href="mailto:lanhuai@gmail.com">Ning Yubin</a>
 * @version $Id: MethodInvoke.java,v 1.1 2009/07/28 02:30:31 ningyubin Exp $
 */
public interface MethodInvoke {
    String getMethodName();

    ResponseFormat getResponseFormat();

    Map<String, String> getParams();

    String getSessionKey();

    String getHttpMethod();

    String getParameter(String name);

    public enum ResponseFormat {
        JSON, XML;
        @Override
        public String toString() {
            return name().toLowerCase();
        }
    }
}
